package com.web.service;

import com.github.pagehelper.PageInfo;
import com.web.entity.Consultation;

import java.util.List;

public interface ConsultationService {

    public Consultation findById(Integer id);

    public PageInfo<Consultation> list(Integer page, Integer pageSize, Consultation consultation);

    public List<Consultation> byUserId(Integer userId);

    public void add(Consultation consultation);

    public void update(Consultation consultation);

    public void delete(Integer id);

    public List<Consultation> findAll();
}
